package cn.ipenta.app.controller.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author ipenta
 * @ClassName: ss
 * @Description: TODO
 * @date 2017-09-21 下午4:24
 */
public class InoculationVo {

	@ApiModelProperty(value = "交易 ID，10位单位编码+8位日期+4位流水号", example = "0000000000201701010001")
	@JSONField(name="ORDER_NO")
	@NotBlank(message = "必须填写")
	private String orderNo;

	@ApiModelProperty(value = "交易类型",example="01")
	@JSONField(name="ORDER_TYPE")
	@NotBlank(message = "必须填写")
	private String orderType;

	@ApiModelProperty(value = "交易时间，格式如YYYY-MM-DD hh:mm:ss",example="2017-09-20 09:02:33")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JSONField(name="VACCINE_DATE")
	@NotNull(message = "必须填写")
	private Date vaccineDate;

	@ApiModelProperty("疫苗编码")
	@JSONField(name="VACCINE_ID")
	@NotBlank(message = "必须填写")
	private String vaccineId;

	@ApiModelProperty(value ="儿童编码,全国唯一编码,字段长度18",example = "000100010001000101")
	@JSONField(name="CHILD_CODE")
	@NotBlank(message = "必须填写")
	private String childCode;

	@ApiModelProperty("接种单位编码")
	@JSONField(name="RECORD_ORGAN_CODE")
	@NotBlank(message = "必须填写")
	private String recodeOrganCode;

	@ApiModelProperty("接种医生编码")
	@JSONField(name="RECORD_OPER_CODE")
	@NotBlank(message = "必须填写")
	private String recodeOperCode;

	@ApiModelProperty(value ="订单废弃标识符",example = "01")
	@JSONField(name="SCRAP_FLAG")
	@NotBlank(message = "必须填写")
	private String scrapFlag;

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	public Date getVaccineDate() {
		return vaccineDate;
	}

	public void setVaccineDate(Date vaccineDate) {
		this.vaccineDate = vaccineDate;
	}

	public String getVaccineId() {
		return vaccineId;
	}

	public void setVaccineId(String vaccineId) {
		this.vaccineId = vaccineId;
	}

	public String getChildCode() {
		return childCode;
	}

	public void setChildCode(String childCode) {
		this.childCode = childCode;
	}

	public String getRecodeOrganCode() {
		return recodeOrganCode;
	}

	public void setRecodeOrganCode(String recodeOrganCode) {
		this.recodeOrganCode = recodeOrganCode;
	}

	public String getRecodeOperCode() {
		return recodeOperCode;
	}

	public void setRecodeOperCode(String recodeOperCode) {
		this.recodeOperCode = recodeOperCode;
	}

	public String getScrapFlag() {
		return scrapFlag;
	}

	public void setScrapFlag(String scrapFlag) {
		this.scrapFlag = scrapFlag;
	}
}
